package vip.finance.makemoney.controller;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.finance.makemoney.apiSpider.eastmoney.EastMoneyPushApi;
import vip.finance.makemoney.apiSpider.eastmoney.EastQtUListRep;
import vip.finance.makemoney.common.WebJson;
import vip.finance.makemoney.common.vo.LoginRes;
import vip.finance.makemoney.config.annotation.NoAuth;

/**
 * @author yangbin
 * @since 2023-02-28
 */
@RestController
@RequestMapping("/test")
public class TestController extends BaseController {
    @Resource
    private EastMoneyPushApi eastMoneyPushApi;

    //登录
    @NoAuth
    @GetMapping("/test1")
    private Object test() {
        EastQtUListRep ulist = eastMoneyPushApi.ulist("f2,f3,f12",
                2,
                "0.399006,0.399001,1.000001,105.NDAQ,100.SPX,100.DJIA,124.HSTECH,100.HSI");
        return ulist;
    }
}
